package ws.db.readtable;


import java.util.*;
import ws.db.*;

public class TestRead {

	
	public static void main(String args[]){
		
	/*	ParamClass obj = new ParamClass();
		
		System.out.print(ParamClass.class);*/
		
//		Read  read = new Read();
//		ParamClass stu = read.getANewClass();
//		System.out.println(stu);
		
		
		ReadObject<ParamClass> readObject = new ReadObject<ParamClass>(ParamClass.class);
		
		ParamClass stu2 = readObject.getANewObject(ParamClass.columnAttrPairs,
										"TempTable"," where Tint=2",null);
		System.out.println(stu2);
		
		ArrayList<ParamClass> stus = readObject.getTopServeralObjects(ParamClass.columnAttrPairs,
										"TempTable",null," order by Tint desc",10);
		Iterator its = stus.iterator();
		while(its.hasNext()){
			System.out.println((ParamClass)its.next());
		}
		
		ArrayList<ParamClass> selectStus =
						readObject.getSpecilRowNumObjects(ParamClass.columnAttrPairs, "TempTable", null, " order by Tint", 995, 10);
		
		
		
		Iterator its2 = selectStus.iterator();
		while(its2.hasNext()){
			System.out.println((ParamClass)its2.next());
		}
		
		
	
	}
	
}
